<template>
  <div></div>
</template>

<script setup>
//组件式数据源
import { ref } from 'vue' //响应式函数调用

let account = 'ABC'
let account1 = ref('ABC')
let emp = {
  salary: 10,
  name: 'jack',
}
account.valueOf()

function addString() {
  this.num += '=' //取出数据源，可通过this关键字进行操作
}

function logPrint() {
  emp.salary = 11
  account1.value = 'abc' //响应式数据通过value修改
  console.log(emp)
}
</script>

<style scoped></style>
